﻿@model Kooboo.CMS.FoodOrdering.Areas.Customer.Models.LoginModel 
<div class="loginitem" id="headerLogInfo">
    @if (!Model.IsAuthenticated)
    {
        using (Html.ModuleHtml().BeginForm())
        {
        <label for="UserName">
            @("Username".Label())</label>
        @Html.ModuleHtml().TextBox("UserName", Model.Username)
        <label for="form_pwd">
            @("Password".Label())</label>
        @Html.ModuleHtml().Password("Password", Model.Password)
        
        <button type="submit">@("Login".Label())</button>
        }
    }
    else
    {
        <label>
            @("Welcome ".Label())
        </label>
        <b>@Model.Username</b>
        <text>!&nbsp;| &nbsp;</text><a tabindex="4" href="@Url.ModuleUrl().Action("Logout")">@("Logout".Label())</a>
    }
</div>
